package cn.codergege.demo.config

import cn.codergege.demo.mock.Subscriber
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import spock.mock.DetachedMockFactory

@Configuration
class DetachedJavaConfig {
    def mockFactory = new DetachedMockFactory()
    @Bean
    Subscriber subscriber() {
        return mockFactory.Mock(Subscriber)
    }
}
